// pages/fatie/fatie.js
Page({
  data: {
    lat: 24.579805,
    lon: 118.095086
  },
  onLoad: function() {
    let that = this;
    wx.getLocation({
      type: 'gcj02',
      success(res) {
        that.setData({
          lat: res.latitude,
          lon: res.longitude
        });
      }
    });
  },
  showGuide: function () {
    wx.openLocation({
      latitude: this.data.lat,
      longitude: this.data.lon,
    });
  }
});